<template>
  <div>
    <div class="head-right">
      <Header></Header>
    </div>
    <el-container>
      <el-aside width="200px">
        <div class="head">
          <happy-scroll size="5">
            <Menu></Menu>
          </happy-scroll>
        </div>
      </el-aside>
      <el-main>
        <router-view>
        </router-view>
      </el-main>
    <Footer></Footer>
    </el-container>
  </div>
</template>

<script>
import Header from "./homeComponents/Header";
import Footer from "./homeComponents/Footer";
import Menu from "./homeComponents/Menu"
import Set from "./boss/Set"
export default {
  components: {
    Header,
    Footer,
    Menu
  },
  data() {
    return {
      menus: [],
      activePath: "",
    };
  },
  created() {
    this.menus = [...this.$router.options.routes];
    this.activePath = this.menus[2].children[0].path;
    console.log(this.menus);
  },
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    },
  },
};
</script>
<style scoped>
.head {
  display: flex;
  margin: 0;
  padding: 0;
}
.head-right {
  width: 100%;
}
.home-left {
  width: 200px;
  border-left: none;
  overflow: auto;
  /* padding-bottom: 56px; */
  height: 500px;
}

.el-menu-item {
  height: 20%;
  color: black;
}
.el-menu {
  border: none;
}
.head-right {
  width: 100%;
}

.el-main {
  /* background-color: #e9eef3; */
  color: #333;
  text-align: center;
  padding-bottom: 20px;
}
.el-footer {
  padding: 0;
}
</style>
